package com.sz.mapper;

import com.sz.model.BankCard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

@Component
public interface BankCardMapper extends Mapper<BankCard> {

    //查询余额
    public Long selectMoney(String ba);
    //账户查询银行卡
    public BankCard selectMoney2(String ba);
    //修改银行余额，转账业务
    public int updateBankMoney(@Param("ba") String ba, @Param("tradingAmount") Long tradingAmount);

    //账银行卡号查询手机号
    public String getPhoneByAccount(String ba);

}